<template>
  <div id="userLayout" :class="['user-layout-wrapper']" :style="`background: url(${imgUrl}) 100% 100%`">
    <div class="container">
      <router-view></router-view>
      <footer class="footer" v-if="organization">
        <div class="copyright">
          <span> ——— {{ organization }} &nbsp;&nbsp;———</span>
        </div>
      </footer>
    </div>
  </div>
</template>

<script>
import config from '@/config/defaultSettings'

export default {
  name: 'UserLayout',
  data () {
    this.imgUrl = './../config/images/login_bg.png'
    return {
      organization: config.copyright
    }
  }
}
</script>

<style lang="less" scoped>
#userLayout {
  position: relative;
  .container {
    height: 100vh;
    background-size: 100% 100%;
  }
  .footer {
    position: absolute;
    bottom: 50px;
    width: 100%;
    .copyright {
      text-align: center;

      span {
        background: rgba(25,27,61,0.45);
        border-radius: 16px;
        color: rgba(255,255,255, 0.6);
        padding: 5px 37px;
      }
    }
  }
}
</style>
